Getting "Expected ',' or '{' but found '[selector]'" error.

Posted by sadmicrowave on Stack Overflow See other posts from Stack Overflow or by sadmicrowave
Published on 2010-04-14T18:18:57Z Indexed on 2010/04/14 18:23 UTC
Read the original article Hit count: 334

Filed under:
|
|
|

Getting "Expected ',' or '{' but found '#44559'" error. My code looks like this:

var valueid = $("div#center-box div#empid-textbox input").val(); //valueid=44559
if($("div#esd-names li#" + valueid).length > 0){
   //DO SOMETHING;
};

I'm getting the value of what is entered into a textbox input field which in case is "44559" can't seem to figure out why I'm getting this error.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about selector